<div class="content-right">
	<?php if (count($data) > 0):?>
	<?php foreach ($data  as $key => $item):?>
		<div class="box">
			<div class="box-title"> <?php echo $key;?></div>
			<div class="box-link">
				<?php if (count($item) > 0):?>
				<ul>
					<?php foreach ($item  as $row):?>
					<li <?php echo (($alias == $row->alias) ? "class='active'" : "") ?>>
						<?php echo anchor('//san-pham/'.$row->alias, $row->name);?>
					</li>
					<?php endforeach;?>
				</ul>
				<?php endif;?>
			</div>
		</div>
	<?php endforeach;?>
	<?php endif;?>
</div>
<div class="content-left">
	<div class="content-left-data">
		<?php if (count($posts) > 0):?>
		<table width="100%" cellspacing="0" border ="0">
			<?php foreach ($posts  as $key => $row):?>
			<?php if (($key % 3) == 0):?>
				<tr>
			<?php endif;?>
				<td valign="top" align="center" style="height: 100%;">
					<div class="item">
						<table style="width: 100%; height: 100%;">
							<tr style="height: 30px;">
								<td align="center"><span class="item-title"><a><?php echo $row->title;?></a></span></td>
							</tr>
							<tr style="height: 150px;">
								<td align="center"><img src="<?php echo base_url(); ?>img/products/<?php echo $row->image_url;?>" alt="" class="img-rounded" width="140px" height="140px"></td>
							</tr>
							<tr>
								<td align="center"><span class="item-price">Giá: liên hệ</span></td>
							</tr>
							<!--<tr>
								<td><button type="button" class="btn btn-info"><a>Chi Tiết</a></button></td>
							</tr>-->
						</table>
					</div>
				</td>
			<?php if (($key % 3) == 2):?>	
				</tr>
			<?php endif;?>
			<?php endforeach;?>
		</table>
		<?php endif;?>
	</div>
</div>
